<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<div class="navbar navbar-default navbar-fixed-top">
  <div class="container">
    <div class="navbar-header">   
    <c:set var="Role" value="${sessionuser.role}"/>                                
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="#"><strong>Leave Application</strong></a>
        </div>
        <div class="navbar-collapse collapse" role="navigation">  
          <ul class="nav navbar-nav">         
 <c:if test="${Role eq 'Admin'}">
 
            <li class="active"><a href="<c:url value="/adminHome" />">Home</a></li>
            <li><a href="<c:url value="/adminHome/movementRegister" />">Movement Register</a></li>
             </c:if>
  <c:if test="${Role ne 'Admin'}">
  
            <li class="active"><a href="<c:url value="/staffHome" />">Home</a></li>
   			<li><a href="<c:url value="/staffHome/movementRegister" />">Movement Register</a></li>
  </c:if>
          </ul>
          <ul class="nav navbar-nav navbar-right">
          <li><a href="<c:url value="/login" />">Logout</a></li>
          </ul>
        </div>   			      		 
  </div>
</div>